package com.ruoyi.service.jpjs.concretecheck.impl;

import com.ruoyi.common.core.text.Convert;
import com.ruoyi.domain.jpjs.common.brickcheck.BrickCheck;
import com.ruoyi.domain.jpjs.common.concretecheck.ConcreteCheck;
import com.ruoyi.domain.jpjs.common.plastercheck.PlasterCheck;
import com.ruoyi.mapper.concretecheck.ConcretecheckMapper;
import com.ruoyi.service.jpjs.concretecheck.ConcretecheckService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author C.fw
 * @explain 混凝土报表业务层处理
 * @since 2020/8/15 15:43
 */
@Service
public class ConcretecheckServiceImpl implements ConcretecheckService {

    @Autowired
    private ConcretecheckMapper concretecheckMapper;

    @Override
    public int updateConcreteCheckById(ConcreteCheck concreteCheck) {
        return concretecheckMapper.updateConcreteCheckById(concreteCheck);
    }

    @Override
    public List<Map<String, Object>> selectBrickcheckDetailList(Map<String, Object> map) {
        return concretecheckMapper.selectBrickcheckDetailList(map);
    }

    @Override
    public List<Map<String, Object>> selectPlastercheckDetailList(Map<String, Object> map) {
        return concretecheckMapper.selectPlastercheckDetailList(map);
    }

    @Override
    public List<PlasterCheck> selectPlasterCheckList(Map<String, Object> map) {
        return concretecheckMapper.selectPlasterCheckList(map);
    }

    @Override
    public int deleteConcreteCheckBycheckId(String checkIdArr) {
        String[] checkId = Convert.toStrArray(checkIdArr);
        return concretecheckMapper.deleteConcreteCheckBycheckId(checkId);
    }

    @Override
    public int deletePlasterCheckBycheckId(String checkIdArr) {
        String[] checkId = Convert.toStrArray(checkIdArr);
        return concretecheckMapper.deletePlasterCheckBycheckId(checkId);
    }

    @Override
    public int updatePlasterCheckById(PlasterCheck plasterCheck) {
        return concretecheckMapper.updatePlasterCheckById(plasterCheck);
    }

    @Override
    public List<ConcreteCheck> selectTotalList(Map<String, Object> map) {
        return concretecheckMapper.selectTotalList(map);
    }

    @Override
    public int insertPlasterCheckBatches(List<PlasterCheck> plasterCheck) {
        return concretecheckMapper.insertPlasterCheckBatches(plasterCheck);
    }

    @Override
    public int deleteBrickCheckBycheckId(String checkIdArr) {
        String[] checkId = Convert.toStrArray(checkIdArr);
        return concretecheckMapper.deleteBrickCheckBycheckId(checkId);
    }

    @Override
    public int insertConcreteCheckBatches(List<ConcreteCheck> concreteCheckList) {
        return concretecheckMapper.insertConcreteCheckBatches(concreteCheckList);
    }

    @Override
    public List<BrickCheck> selectBrickCheckList(Map<String, Object> map) {
        return concretecheckMapper.selectBrickCheckList(map);
    }

    @Override
    public int insertBrickCheckBatches(List<BrickCheck> brickCheck) {
        return concretecheckMapper.insertBrickCheckBatches(brickCheck);
    }

    @Override
    public int updateBrickCheckById(BrickCheck brickCheck) {
        return concretecheckMapper.updateBrickCheckById(brickCheck);
    }

    @Override
    public List<ConcreteCheck> selectConcreteCheckList(Map<String, Object> map) {
        return concretecheckMapper.selectConcreteCheckList(map);
    }

    @Override
    public List<Map<String, Object>> selectConcretecheckDetailList(Map<String, Object> map) {
        return concretecheckMapper.selectConcretecheckDetailList(map);
    }

}
